<include file="Public:header" />


			<div id="content" class="container_16 clearfix">
				<div class="grid_16">
					<h2>Submit News Article</h2>
					<!--<p class="error">Something went wronk.</p>-->
				</div>
				
				<form action="__URL__/edit" method="post" enctype="multipart/form-data">
				<div class="grid_5">
					<p>
						<label for="title">Title <small>Must contain alpha-numeric characters.</small></label>
						<input type="text" name="video_name" value="{$video.video_name}" />
					</p>
				</div>

				<div class="grid_5">
					<p>
						<label for="title">Slug <small>Must contain alpha-numeric characters.</small></label>
						<input type="text"  />
					</p>
						
				</div>
				<div class="grid_6">
					<p>
						<label for="title">Category</label>
						<select name="cat_id" >
							<option value="" selected="selected">Select Category</option>
							<foreach name="cats" item="cat" >
							<option value="{$cat.cat_id}" <if condition="$cat.cat_id eq $c_cat">selected="selected"</if>>{$cat.cat_name}</option>
							</foreach>
						</select>
					</p>
				</div>
				
				<div class="grid_8">
					<p>
						<label for="title">Points <small></small></label>
						<input type="text" name="point" value="{$video.point}" />
					</p>
						
				</div>
				
				<div class="grid_8">
					<p>
						<label for="title">Maximum Views <small></small></label>
						<input type="text" name="max_counts"  value="{$video.max_counts}" />
					</p>
						
				</div>
				
				<div class="grid_8">
					<p>
						<label for="title">Upload Image <small></small></label>
						<!--<img src="__ROOT__{$video.image_path}{$video.image_name}" width="157px" height="112x" />-->
						<input type="file" name="photo1" />
					</p>
						
				</div>
				
				<div class="grid_8">
					<p>
						<label for="title">Upload Video <small></small></label>
						<input type="file" name="photo2" />
					</p>
						
				</div>
				
				<div class="grid_16">
					<p>
						<label for="title">Question <small></small></label>
						<input type="text" name="q_name" value="{$q_info.q_name}" />
					</p>	
				</div>
				
				<volist name="answers" id="answer">
				<div <if condition="$i eq 1">class="grid_16"<else />class="grid_8"</if>>
					<p>
						<label for="title">Answer{$i} <small></small></label>
						<input type="text" name="{$answer.a_id}" value="{$answer.a_name}" />
					</p>	
				</div>
				</volist>

				<div class="grid_16">
					<p>
						<label>Summary <small>Will be displayed in search engine results.</small></label>
						<textarea></textarea>
					</p>
				</div>

				<div class="grid_16">
					<p>
						<label>Article <small>Markdown Syntax.</small></label>
						<textarea class="big"></textarea>
					</p>
					<p class="submit">
						<input type="submit" value="edit" />
						<input type="hidden" name="video_id" value="{$video.video_id}" />
						<input type="hidden" name="q_id" value="{$q_info.q_id}" />
						<input type="hidden" name="submitted" value="submitted" />
					</p>
				</div>
				</form>
			</div>


<include file="Public:footer" />